#include <string>

#include "subject.h"
#include "observer.h"

void StockObserver::Update()
{
    std::cout << sub->GetState() << ", " << name << "关闭股票行情，继续工作" << std::endl;
}

void NBAObserver::Update()
{
    std::cout << sub->GetState() << ", " << name << "关闭NBA直播，继续工作" << std::endl;
}